home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
PALEDIT-
/
SOURCE
/
DFAN.H
< prev
next >
Wrap
Text File
|
1990-01-22
|
1KB
|
47 lines
/*------------------------------------------------------------------------------
* File: dfan.h
* Purpose: header file for the Annotations set
* Invokes: df.h
* Contents:
* Structure definitions: DFANdirentry, DFANdirhead
* Constant definitions: DFAN_LABEL, DFAN_DESC
* Remarks: none
*----------------------------------------------------------------------------*/
#ifndef DFAN /* avoid re-inclusion */
#define DFAN
#include "df.h"
#define DFAN_LABEL 0
#define DFAN_DESC 1
#define DFAN_DEFENTRIES 16 /* no of dir entries to add at a time */
/* This structure stores an entry in the label/desc directory */
/* for a label/desc in the file, it gives the ref of the label/desc,
and the tag/ref of the data item to which the label/desc relates */
typedef struct {
uint16 annref; /* ref of annotation */
uint16 datatag, dataref; /* tag/ref of data */
} DFANdirentry;
/* This structure is a head node for the directory, which is organized as
as a linked list of arrays. DFANdirentry is the structure of an
array element, while DFANdirhead is the list element */
typedef struct DFANdirhead {
int nentries;
struct DFANdirhead *next;
DFANdirentry entries[1]; /* actually an arbitrary size array */
} DFANdirhead;
#ifndef VMS
int32 DFANIgetannlen();
#else
int32 _DFANIgetannlen();
#endif
#endif /*DFAN*/